#@layout()
#define main()
	<div>
		<div style="margin:5px 0;border-bottom:1px solid #aaa;">
			<span class="layui-breadcrumb">
				<a href="#">代码类别</a>
				<a><cite>列表</cite></a>
			</span>
        </div>
		<form id="form1" class="layui-form" action="xpCodeType" method="post" style="padding:0px 0 0 20px;">
			<div class="layui-form-item" style="margin-bottom: 0;">
				<div class="layui-inline">
					<label class="layui-form-label">编号</label>
					<div class="layui-input-inline">
						<input class="layui-input" type="text" name="type" value="#(type)">
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width:90px;">名称</label>
					<div class="layui-input-inline">
						<input class="layui-input" type="text" name="note"  value="#(note)">
					</div>
				</div>
				<div class="layui-inline">
				&nbsp;<input class="layui-btn layui-btn-sm" type="submit" value="查询">
				#if(bCanAdd)
				<a class="layui-btn layui-btn-primary layui-btn-sm" href="xpCodeType/add_ui">
				<span>添加类别</span>
				</a>				
				#end
				</div>
			</div>
		</form>
	</div>
		<table class="layui-table" lay-even="">
			<colgroup>
				<col width="90">
				<col width="100">
				<col width="200">
				<col width="200">
			</colgroup>
			<tr id="first_tr">
				<th>序号</th>
				<th>systemID</th>
				<th>编号</th>
				<th>名称</th>
			</tr>
			#for(x : lists.getList()??)
			<tr>
				<td >#((lists.pageNumber-1)*lists.pageSize+for.index+1)</td>
				<td >#(x.systemID)</td>
				<td >#(x.type)</td>
				<td >
				#if(bCanEdit)
				<a href="xpCodeType/edit_ui?id=#(x.id)">#(x.note)</a>
				#else
				#(x.note)
				#end
				</td>
			</tr>
			#end
		</table>

		

	<div id="_paginate"  style="margin-left: 10px;"></div>
	<script type="text/javascript">
		$(function(){
			xpsoft.paginate("_paginate",#(lists.pageNumber??1), #(lists.totalRow??1), "xpCodeType","form1");	
		});
		
	</script>
		
#end